﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage1.master" AutoEventWireup="true"
    CodeFile="register.aspx.cs" Inherits="register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        #register_regis
        {
            float: left;
            position: relative;
            left: 10px;
            top: -5px;
            margin: 24px 24px 24px 360px;
            width: 320px;
            height: 400px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="login&zhuce" style="height: 900px; border: solid 5px #06F; margin: 24px 160px 50px 160px;
        width: 960px; height: 490px; background-color: #FFFFFF; opacity: 0.9;">
        <div id="register_regis">
            <p>
                新会员注册</p>
            <label>
                用户名</label><br />
            <input type="text" id="txtUserName" runat="server" />
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                ControlToValidate="txtUserName" ErrorMessage="以字母开头（3-16）位" 
                ForeColor="Red" ValidationExpression="^[a-zA-Z_][a-zA-Z0-9_]{2,16}$"></asp:RegularExpressionValidator>
            <br />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="txtUserName" ErrorMessage="用户名不能为空！" ForeColor="Red"></asp:RequiredFieldValidator>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="lbErr" runat="server" ForeColor="Red"></asp:Label>
            <br />
            <br />
            <label>
                性别</label>
            <asp:RadioButton ID="radFemale" runat="server" Checked="True" GroupName="1" 
                Text="女" />
            <asp:RadioButton ID="radMale" runat="server" GroupName="1" Text="男" />
            <br />
            <br />
            <label>
                Email</label><br />
            <input type="text" id="txtEmail" runat="server" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtEmail" ErrorMessage="邮箱不能为空！" ForeColor="Red"></asp:RequiredFieldValidator>
            <br />
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                ErrorMessage="RegularExpressionValidator" ForeColor="Red" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">邮箱格式不正确</asp:RegularExpressionValidator>
            <br />
            <br />
            <label>
                密码</label><br />
            <input type="password" id="txtPassword" runat="server" /><asp:RegularExpressionValidator 
                ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtPassword" 
                ErrorMessage="6-21位之间！" ForeColor="Red" 
                ValidationExpression="^[\dA-Za-z(!@#$%&amp;)]{6,21}$"></asp:RegularExpressionValidator>
            <br />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="txtPassword" ErrorMessage="请输入密码" ForeColor="Red"></asp:RequiredFieldValidator>
            <br />
            <br />
            <label>
                再次输入密码</label><br />
            <input type="password" id="txtConfPassword" runat="server" />
            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword"
                ControlToValidate="txtConfPassword" ErrorMessage="CompareValidator" 
                ForeColor="Red">两次密码不一样</asp:CompareValidator>
            <br />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                ControlToValidate="txtConfPassword" ErrorMessage="请确认密码" ForeColor="Red"></asp:RequiredFieldValidator>
            <br />
            <input type="checkbox" checked="checked" id="chkRule" />我已经阅读并同意-<a href="">《江城影世界服务条款》</a>
            <br />
            &nbsp;<asp:Button ID="Button1" runat="server" Text="免费注册" />
        </div>
    </div>
</asp:Content>
